package com.csu.message;

/**
 * 
 * @author 胡海亮  QQ:249782944
 * 学校:中南大学 商学院
 * EnterpriseIMServer :企业即时通讯
 * Apr 27, 2010
 * 
 * 
 */
public class FileMessage extends BaseMessage {

	private String fileName;
	private int filePartID;         //文件的分段号
	private int allFilePartNum;     //文件的分段号
	private int filePartAmount;     //文件的段数据
	private byte[] filePartDate;    //此文件段数据大小
	
	private long fileLength;      //文件长度 以KB为单位
	
	private String fileAbsolutePath;
	
	private String saveFilePath;
	
	private boolean isFinshed;
	


	public FileMessage(){
		this.setMsgType(MessageType.FileMessage_Type);
	}
	
	
	public FileMessage(String srcQQ,String destQQ ){
		this();
		this.setSrcQQ(srcQQ);
		this.setDestQQ(destQQ);
	}
	public FileMessage(String srcQQ,String destQQ,int filePartAmount ){
		this( srcQQ, destQQ);
		this.setFilePartAmount(filePartAmount);
		filePartDate=new byte[filePartAmount];
	}


	public int getFilePartAmount() {
		return filePartAmount;
	}


	public void setFilePartAmount(int filePartAmount) {
		this.filePartAmount = filePartAmount;
	}


	public byte[] getFilePartDate() {
		return filePartDate;
	}


	public void setFilePartDate(byte[] filePartDate) {
		this.filePartDate = filePartDate;
	}


	public int getFilePartID() {
		return filePartID;
	}


	public void setFilePartID(int filePartID) {
		this.filePartID = filePartID;
	}


	public String getFileAbsolutePath() {
		return fileAbsolutePath;
	}


	public void setFileAbsolutePath(String fileAbsolutePath) {
		this.fileAbsolutePath = fileAbsolutePath;
	}
	
	public String getSaveFilePath() {
		return saveFilePath;
	}


	public void setSaveFilePath(String saveFilePath) {
		this.saveFilePath = saveFilePath;
	}


	public boolean isFinshed() {
		return isFinshed;
	}


	public void setFinshed(boolean isFinshed) {
		this.isFinshed = isFinshed;
	}


	public long getFileLength() {
		return fileLength;
	}


	public void setFileLength(long fileLength) {
		this.fileLength = fileLength;
	}


	public String getFileName() {
		return fileName;
	}


	public void setFileName(String fileName) {
		this.fileName = fileName;
	}


	public int getAllFilePartNum() {
		return allFilePartNum;
	}


	public void setAllFilePartNum(int allFilePartNum) {
		this.allFilePartNum = allFilePartNum;
	}



}
